<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title> 图像猜测 </title>
    <style>
        body {
            margin: 20px;
        }

        img {
            margin: 20px;
        }
    </style>
    <script>
        function reblur(eventObj) {
            var image = eventObj.target;
            image.src = image.id + "blur.jpg";
        }

        function showAnswer(eventObj) {
            var image = eventObj.target;
            image.src = image.id + ".jpg";

            // setTimeout(reblur, 2000, image);
        }

        function init() {
            var images = document.getElementsByTagName("img");
            for (var i = 0; i < images.length; i++) {
                // images[i].onclick = showAnswer;
                images[i].onmouseover = showAnswer;
                images[i].onmouseout = reblur;
            }
        }

        window.onload = init;
    </script>
</head>
<body>
<img id="zero" src="zeroblur.jpg">
<img id="one" src="oneblur.jpg">
<img id="two" src="twoblur.jpg">
<img id="three" src="threeblur.jpg">
<img id="four" src="fourblur.jpg">
<img id="five" src="fiveblur.jpg">
</body>
</html>